#ifndef checkoutrecord_h
#define checkoutrecord_h

#include <string>

class CheckOutRecord {
public:
	std::string resvId;
	std::string checkOutTime;
	double totalCost;
	std::string status; // "已结账"
	
	CheckOutRecord();
	CheckOutRecord(const std::string& rid, const std::string& time, double cost, const std::string& stat);
	void saveToFile(const std::string& filename) const;
	static CheckOutRecord loadFromFile(const std::string& filename);
};

#endif
